/**
 * Created by henian.xu on 2018/9/17.
 *
 */

const path = require('path');
const {render} = require('../src/index');
const {parse} = require('../index');
const gonzales = require('gonzales-pe');

const inlineData = `
  .div{padding:1px $number1;margin:1px;}
  @import './index.scss';
  $number1: 123px;
  $number2: 2 * $number1;
`;
const inlineNestedPath = path.join(__dirname, 'scss');

describe('sass-test', () => {
  it('console', () => {
    render({
      data: inlineData,
      includePaths: [inlineNestedPath],
    });
  });
  it('gonzales', () => {
    // const parseTree = gonzales.parse(inlineData, {syntax: 'scss'});
    // console.log(parseTree.toJson());
    // console.log(parse)
    parse(inlineData)
    // console.log(JSON.stringify(parseTree.content));
    // console.log('\n', parseTree.toString());
  });
});
